package cn.newstrength.cuichao.step;

import cn.newstrength.wtdf.web.databus.DataContext;
import cn.newstrength.wtdf.web.exception.PAIException;
import cn.newstrength.wtdf.web.processor.Operation;
import cn.newstrength.wtdf.web.processor.OperationStep;

import java.util.Map;


public class CuiChaoStep implements OperationStep {
    @Override
    public int excute(Operation operation) throws PAIException {
        //获取数据总线
        DataContext context = operation.getContext();
        //输出hello world
        context.setTranStepResult(0, "SUCCESS", "Hello World!");

        return 0;
    }

    @Override
    public int init(Map<String, String> map) {
        return 0;
    }
}
